package study;

import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 腾讯课堂搜索【咕泡学院】
 * 官网：www.gupaoedu.com
 * 风骚的Mic 老师
 * create-date: 2020/1/6-16:00
 */
@RestController
public class HelloController {

    //@DubboReference(url = "dubbo://192.168.100.2:20880/study.IUserService")
    @DubboReference
    private IUserService userService;

    @GetMapping("/say")
    public String sayHello(){
        return userService.getNameById(" 张三 ");
    }

}
